import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';

///dialog, toast, etc.
class PopHeler {
  /*const PopHeler._();

  static PopHeler? _instance;

  static PopHeler get instance => _instance ??= PopHeler._();*/

  static Widget appBuilder(Widget? child) => FlutterSmartDialog(child: child);

  static void show() {
    SmartDialog.showLoading();
  }

  static void dismiss() {
    SmartDialog.dismiss();
  }

  static void toast(String msg) {
    SmartDialog.showToast(msg);
  }
}
